package com.nlecloud.bc.service.contract;

import com.nlecloud.bc.controller.contract.dto.InfringementDTO;
import com.nlecloud.bc.model.PageResult;
import org.fisco.bcos.sdk.transaction.model.exception.ContractException;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * 侵权取证合约操作服务接口声明
 */
public interface IInfringementContractService {

    /**
     * 新增侵权信息
     *
     * @param title 标题
     * @param url   侵权url
     * @return
     */
    boolean addInfringement(String title, String url, HttpServletRequest request) throws Exception;

    /**
     * 查询侵权信息
     *
     * @param index 从第几条数据查询
     * @param size  查询条数
     * @return
     */
    PageResult<InfringementDTO> listInfringement(int index, int size, HttpServletRequest req) throws ContractException;

}
